package main.util;

import org.apache.commons.io.FileUtils;

import java.io.File;

/**
 * @author zhangweifeng
 * @date 2018/5/28
 */
public class MyFileUtils {
    /**
     * 删除目录下文件，不包含目录
     */
    public static void deleteFile(File directory){
        for (File file : directory.listFiles()) {
            if(!file.isDirectory()){
                file.delete();
            }
        }
    }
}
